package service

import (
	"fmt"
	"go-study/global"
	"go-study/model"
)

func AddUser() {
	u1 := model.User{
		Username: "zhangsan",
		Password: "123456",
		NickName: "张三",
	}
	global.ASW_DB.Create(&u1)
}

func FindUser() {
	var u = new(model.User)
	global.ASW_DB.First(u)
	fmt.Println(u.Username)
}
